package com.wg.spring.feign;

import com.wg.spring.fallback.EnvirFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description:
 * @Author WuGang
 * @Date 2022/3/10 15:09
 * @Version 1.0
 */
@FeignClient(name = "environment",fallback = EnvirFallback.class)
//@Service
public interface Envir {
    @RequestMapping(value = "/say")
    @ResponseBody
    public String say();

}
